// InputDialog.cpp : implementation file
//

#include "stdafx.h"
#include "dataManage.h"
#include "InputDialog.h"


#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CInputDialog dialog

IMPLEMENT_DYNAMIC(CInputDialog, CDialog)

CInputDialog::CInputDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CInputDialog::IDD, pParent)
	, m_inputString(_T(""))
{

}

CInputDialog::CInputDialog(LPCTSTR Name,CWnd* pParent /*=NULL*/)
	: CDialog(CInputDialog::IDD, pParent)
	, m_inputString(_T(""))
	, m_DialogName(Name)
{

}
CInputDialog::~CInputDialog()
{
}

void CInputDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_INPUTSTRING, m_inputString);
}


BEGIN_MESSAGE_MAP(CInputDialog, CDialog)
END_MESSAGE_MAP()


// CInputDialog message handlers

BOOL CInputDialog::OnInitDialog()
{
	CDialog::OnInitDialog();
	SetWindowText(m_DialogName);
	CEdit* pEdit = (CEdit*)GetDlgItem(IDC_INPUTSTRING);
	if (pEdit)
	{
		GotoDlgCtrl(pEdit);
	}

	// TODO:  Add extra initialization here

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
